import '../../util/http.dart';
import 'package:flutter/material.dart';

class MapApi{

  BuildContext? context;

  static MapApi of(BuildContext? context){
    MapApi map = MapApi();
    map.context = context;
    return map;
  }

  /// 查找站点信息
  Future<dynamic> sites() async{
    return ApiService.of(context).get('/lgs/map/components/sites');
  }
}